﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Resources/TPLOAMPage.Master" AutoEventWireup="true"
    CodeBehind="adminprofile.aspx.cs" Inherits="TPLOAWebClient.adminprofile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="navbarPHolder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Button ID="profileBtn" runat="server" Font-Bold="False" OnClick="profileBtn_Click"
        Text="Profile" CausesValidation="False" CssClass="navbtnCSS" />
    <asp:Button ID="managementtoolsBtn" runat="server" Font-Bold="False" OnClick="managementtoolsBtn_Click"
        Text="Management Tools" CausesValidation="False" CssClass="navbtnCSS" />
    <asp:Button ID="faqBtn" runat="server" Font-Bold="False" OnClick="faqBtn_Click" Text="FAQ"
        CausesValidation="False" CssClass="navbtnCSS" />
    <asp:Button ID="otherservicesBtn" runat="server" Font-Bold="False" OnClick="otherservicesBtn_Click"
        Text="Other Services" CausesValidation="False" CssClass="navbtnCSS" />
    <asp:Button ID="LogoutBtn" runat="server" Font-Bold="False" OnClick="LogoutBtn_Click"
        Text="Logout" CausesValidation="False" CssClass="navbtnCSS" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="sectionTitlePHolder" runat="server">
    Profile
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="mainContentPHolder" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table>
                <tr>
                    <td colspan="2">
                        <strong>Admin Profile</strong></td>
                </tr>
                <tr>
                    <td>
                        <b>StaffID </b>
                    </td>
                    <td>
                        <asp:Label ID="staffidLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Name* </b>
                    </td>
                    <td style="margin-left: 40px">
                        <asp:TextBox ID="nameTbx" runat="server" MaxLength="30"></asp:TextBox>
                        <ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server"
                            TargetControlID="nameTbx" WatermarkCssClass="watermarked" WatermarkText="Type full name here." />
                        <ajaxToolkit:FilteredTextBoxExtender ID="ftbe" runat="server" FilterType="Custom,LowercaseLetters,UppercaseLetters"
                            TargetControlID="nameTbx" ValidChars=" " />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please enter a name!"
                            ControlToValidate="nameTbx" ForeColor="Red" ValidationGroup="Profile"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Email* </b>
                    </td>
                    <td>
                        <asp:TextBox ID="emailTbx" runat="server" MaxLength="30"></asp:TextBox>
                        <ajaxToolkit:TextBoxWatermarkExtender ID="TBWE2" runat="server" TargetControlID="emailTbx"
                            WatermarkCssClass="watermarked" WatermarkText="Type email here." />
                        <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server"
                            FilterType="Custom,LowercaseLetters,UppercaseLetters,Numbers" TargetControlID="emailTbx"
                            ValidChars="@." />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="emailTbx"
                            ErrorMessage="Please enter an email!" ForeColor="Red" ValidationGroup="Profile"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>CourseCode* </b>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="coursecodeRbl" runat="server">
                            <asp:ListItem Selected="True">IT</asp:ListItem>
                            <asp:ListItem>MNS</asp:ListItem>
                            <asp:ListItem>CDS</asp:ListItem>
                            <asp:ListItem>GET</asp:ListItem>
                            <asp:ListItem>FBI</asp:ListItem>
                            <asp:ListItem>IMI</asp:ListItem>
                            <asp:ListItem>DFS</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>ApprovePermission </b>
                    </td>
                    <td>
                        <asp:Label ID="approvepermissionLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>AdminRights </b>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="adminrightsRbl" runat="server">
                            <asp:ListItem Selected="True">Yes</asp:ListItem>
                            <asp:ListItem>No</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="updateBtn" runat="server" OnClick="updateBtn_Click" Text="Update" onclientclick="return confirm('Confirm Update?');"
                            ValidationGroup="Profile" CssClass="btnCSS" />
                        <asp:Label ID="retrieveLbl" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
            </table>
            <strong>Change Password</strong><br />
            <table class="style1">
                <tr>
                    <td>
                        <b>Current Password </b>
                    </td>
                    <td>
                        <asp:TextBox ID="currentTbx" runat="server" AutoPostBack="True" 
                            TextMode="Password" MaxLength="20"></asp:TextBox>
                        <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"
                            Text=" See Password" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please enter your current password"
                            ControlToValidate="currentTbx" ForeColor="Red" ValidationGroup="password"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>New Password </b>
                    </td>
                    <td>
                        <asp:TextBox ID="newTbx" runat="server" AutoPostBack="True" TextMode="Password" 
                            MaxLength="20"></asp:TextBox>
                        <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox2_CheckedChanged"
                            Text="See Password" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Please enter your new password"
                            ControlToValidate="newTbx" ForeColor="Red" ValidationGroup="password"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Confirm Password </b>
                    </td>
                    <td>
                        <asp:TextBox ID="confirmTbx" runat="server" AutoPostBack="True" 
                            TextMode="Password" MaxLength="20"></asp:TextBox>
                        <asp:CheckBox ID="CheckBox3" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox3_CheckedChanged"
                            Text="See Password" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Please enter your confirm password"
                            ControlToValidate="confirmTbx" ForeColor="Red" Display="Dynamic" ValidationGroup="password"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="newTbx"
                            ControlToValidate="confirmTbx" ErrorMessage="Your new and confirm password is not the same."
                            ForeColor="Red" ValidationGroup="password"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>&nbsp; </b>
                    </td>
                    <td>
                        <asp:Button ID="changeBtn" runat="server" OnClick="changeBtn_Click" Text="Change" onclientclick="return confirm('Confirm Change Password?');"
                            ValidationGroup="password" CssClass="btnCSS" />
                        <asp:Label ID="changeLbl" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
    <br />
    <br />
</asp:Content>
